<template>
	<u-sticky offset-top="0" h5-nav-height="0">
		<immerse></immerse>
		<!-- 顶部兼容组件APP端-结束 -->
		<view class="hone">
			<image class="hlogo" src="/static/img/meicon.png" @click="getmine" />
			<image class="hlogo ml" src="/static/img/keicon.png" @click="gethome" />
		</view>
	</u-sticky>
</template>

<script>
export default {
	props: {
		shaishow: {
			type: Boolean,
			default: false
		},
		cont:{
			type: String,
			default: ''
		}
	
	},
	name: "Nheader",
	data() {
		return {
			ispayPop: true,
			animat: this.isanimate(),
		};
	},
	methods: {
		getsou(){
			uni.showToast({
				title: '点击此处',
				icon: 'success'
			})
		},
		leftClick() {
			this.$emit("leftClick");
		},
		connectWallet(){
			
			this.$emit("connectWallet");
		},
		gettantwo(){
			this.$emit("gettantwo");
		},
		getmine(){
			this.$emit("getmine");
		},
		async gethome(){
			let resd = await this.$u.api.apiconfig({
			});
			let custom = resd.custom[0]
			// #ifdef H5
			location.href = custom.url
			// #endif
			// #ifdef APP-PLUS
			this.navrouter("/pages/TPage/webview?url="+encodeURIComponent(custom.url));
			// #endif
			// uni.switchTab({ url: '/pages/tabbar/Tabhome' })
		}
	}
}
</script>

<style scoped lang="scss">
.hone {
	background: #FFFFFF;
	height: 96rpx;
	// box-shadow: 0rpx 10rpx 20rpx 0rpx rgba(202,205,217,0.14);
	opacity: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0 38rpx;
	position: relative;
	z-index: 10;
	.hlogo{
		width: 40rpx;
		height: 40rpx;
	}
	.ml{
		margin-left: auto;
	}
	.appdown{
		padding: 8rpx 16rpx;
		border-radius: 50rpx;
		border: 1px solid #FA4E4E;
		font-weight: 400;
		font-size: 24rpx;
		color: #FA4E4E;
	}
	.hrview{
		margin-left: auto;
		display: flex;
		flex-direction: row;
		align-items: center;
		.souicon{
			width: 40rpx;
			height: 40rpx;
			margin-left: 60rpx;
		}
		.geng{
			width: 38rpx;
			height: 36rpx;
			margin-left: 60rpx;
		}
	}

}
</style>
